﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;

namespace ExamAnalysis.Core
{
    public class UserProfile:ProfileBase
    {
        /*
         *  使用举例：
         *  Membership.UpdateUser(mu);
         *  UserProfile p = (UserProfile)ProfileBase.Create(mu.UserName);
         *  p.RealName = obj.RealName;
         */

        [SettingsAllowAnonymous(true)]
        [ProfileProvider("AspNetSqlProfileProvider")]
        public string RealName
        {
            get { return base["RealName"].ToString(); }
            set { base["RealName"] = value; }
        }

        [SettingsAllowAnonymous(true)]
        [ProfileProvider("AspNetSqlProfileProvider")]
        public string UserCode
        {
            get { return base["UserCode"].ToString(); }
            set { base["UserCode"] = value; }
        }

        [SettingsAllowAnonymous(true)]
        [ProfileProvider("AspNetSqlProfileProvider")]
        public string Sex
        {
            get { return base["Sex"].ToString(); }
            set { base["Sex"] = value; }
        }
    }
}